package com.kbp.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="detail")
public class Detail {
	
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "ID")	
	private Long id;	
	@Column(name = "HOME_NO")
	private String home_no;
	@Column(name = "MOO")
	private String moo;
	@Column(name = "SOI")
	private String soi;
	@Column(name = "ROAD")
	private String road;
	@Column(name = "DISTRICT")
	private String district;
	@Column(name = "AMPHUR")
	private String amphur;
	@Column(name = "PROVINCE")
	private String province;
	@Column(name = "POSTCODE")
	private String postcode;	
	
	@ManyToOne
	@JoinColumn(name = "USER_ID")
	private User userId;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getHome_no() {
		return home_no;
	}
	public void setHome_no(String home_no) {
		this.home_no = home_no;
	}
	public String getMoo() {
		return moo;
	}
	public void setMoo(String moo) {
		this.moo = moo;
	}
	public String getSoi() {
		return soi;
	}
	public void setSoi(String soi) {
		this.soi = soi;
	}
	public String getRoad() {
		return road;
	}
	public void setRoad(String road) {
		this.road = road;
	}
	public String getDistrict() {
		return district;
	}
	public void setDistrict(String district) {
		this.district = district;
	}
	public String getAmphur() {
		return amphur;
	}
	public void setAmphur(String amphur) {
		this.amphur = amphur;
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getPostcode() {
		return postcode;
	}
	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}
	public void setUserId(User userId) {
		this.userId = userId;
	}
	public User getUserId() {
		return userId;
	}
}